package cn.wolfcode.wechat.mapper;

import cn.wolfcode.wechat.domain.Account;
import cn.wolfcode.wechat.domain.Client;
import cn.wolfcode.wechat.domain.Recharge;
import cn.wolfcode.wechat.query.RechargeQueryObject;

import java.util.List;

public interface RechargeMapper {

    int insert(Recharge record);

    Recharge selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Recharge record);

    List queryPage(RechargeQueryObject qo);

    Long getClientIdByOpenId(String openId);

    Client getClientByOpenId(String openId);

    Account getAccountByClientId(Long clientId);
}